package models

import (
	"time"
)

type ProjectVersion struct {
	Id            string   `orm:"pk"`
	VersionLabel  string   `orm:"column(version_label)"`
	ProjectId     *Project `orm:"column(project_id);rel(fk)"`
	OrigVersionId string   `orm:"column(orig_version_id)"`

	Description string
	Archived    int32
	Deleted     int32 `orm:"column(deleted)"`

	CreateTime     time.Time `orm:"column(create_time);type(datetime)"`
	CreateBy       string    `orm:"column(create_by)"`
	LastUpdateBy   string    `orm:"column(last_update_by)"`
	LastUpdateTime time.Time `orm:"column(last_update_time);type(datetime)"`

	VersionType string    `orm:"column(version_type)"`
	ReleaseDate time.Time `orm:"column(release_date);type(datetime)"`

	Folders []*Folder `orm:"reverse(many)"` // fk 的反向关系
}
